<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<base href="<%=basePath%>" >
</head>
<body>
	<script type="text/javascript" src="<%=basePath%>scripts/system/user/list.js"></script>
	
	<div class="easyui-layout" fit="true">
	
		<div region="north" border="false" class="borsty-b">
			<div id="usersPanel">
				<a id="addUserBtn" href="javascript:void(0);" class="easyui-linkbutton" onclick="openUsersWindow('add')">增加</a>
				<a id="editUserBtn" href="javascript:void(0);" class="easyui-linkbutton" onclick="openUsersWindow('edit')">编辑</a>
				<a id="delUserBtn" href="javascript:void(0);" class="easyui-linkbutton" onclick="openUsersWindow('del')">删除</a>
				<a id="closeUserBtn" href="javascript:void(0);" class="easyui-linkbutton" onclick="curTabClose()">关闭</a>
			</div>
		</div>
		
		<div region="west" split="true" border="false" style="width:300px; border-right: 1px #aed0ea solid">
			<div class="easyui-panel" title="部门列表" fit="true" border="false" >
				<div id="usersDepartTreeGrid" fit="true"></div>
			</div>
		</div>
		
		<div region="center" border="false" style="border-left: 1px #aed0ea solid">
			<div class="easyui-panel" title="用户列表" fit="true" border="false";>
				<div id="usersDataGrid" fit="true"></div>
			</div>
		</div>
		
	</div>
	
	<div id="usersWindow" style="display:block;">
		<div id="usersPanel2" style="border-bottom: 1px #aed0ea solid">
			<a id="USER_CU_WINDOW_SAVE" href="javascript:void(0);" class="easyui-linkbutton" onclick="submitUser()">保存</a>
			<a id="USER_CU_WINDOW_CLOSE" href="javascript:void(0);" class="easyui-linkbutton" onclick="closeWindow()">关闭</a>
		</div>
		<table class="tableForm" width="100%" style="padding: 5px">
			<tr>
				<td>用户名：</td>
				<td><input id="userLoginName" name="userLoginName" type="text" style="width:200px;" /></td>
				<td>密码：</td>
				<td>
				<input id="pwd" name="pwd" type="hidden"/>
				<input id="userPwd" name="userPwd" type="text" style="width:200px;" /></td>
			</tr>
			<tr>
				<td>姓名：</td>
				<td><input id="userName" name="userName" type="text" style="width:200px;" /></td>
				<td>编号：</td>
				<td><input id="userSn" name="userSn" type="text" style="width:200px;" /></td>
			</tr>
			<tr>
				<td>性别：</td>
				<td><span id="usersSex" /></td>
				<td>电话：</td>
				<td><input id="userPhone" name="userPhone" type="text" style="width:200px;" /></td>
			</tr>
			<tr>
				<td>出生日期：</td>
				<td><span id="usersBirthday" /></td>
				<td>入职时间：</td>
				<td><span id="usersJobDate"></td>
			</tr>
			<tr>
				<td>所属部门：</td>
				<td><span id="usersDepart" /></td>
				<td>所属角色：</td>
				<td><span id="usersRoles" /></td>
			</tr>
			<tr>
				<td>用户状态：</td>
				<td><span id="usersStatus"></span></td>
				<td>是否锁定：</td>
				<td><span id="usersLocked"></span></td>
			</tr>
			<tr>
				<td colspan="4" align="center">
				<input id="usersMethodName" name="usersMethodName" type="hidden" />
				<!-- 
				<input id="submitUsersButton" name="submitUsersButton" type="button" style="width:80px; height:30px;" onclick="submitUser()" />
				 -->
				</td>
			</tr>
		</table>
	</div>
	
	<input type="hidden" id="departId" name="departId" value="${departId}">
	<input type="hidden" id="curDepartId" name="curDepartId" value="${curDepartId}">
	</div>
</body>
</html>